package com.tebiecloud.order.client.service;

import com.tebiecloud.common.model.ResultBody;
import com.tebiecloud.order.client.model.entity.OrderGoods;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface IOrderGoodsServiceCient {

    /**
     * 获取未核销的权益列表
     * @param userId
     * @return
     */
    @PostMapping("/feign/ordergoods/selectOrderGoods")
    ResultBody<List<OrderGoods>>  selectOrderGoods(@RequestParam("userId") long userId);

    /**
     * 获取订单商品列表
     * @param orderId
     * @return
     */
    @PostMapping("/feign/ordergoods/listOrderGoods")
    ResultBody<List<OrderGoods>>  listOrderGoods(@RequestParam("orderId") long orderId);
    
}
